package com.pwc.conversionTool.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Transient;

import org.codehaus.jackson.annotate.JsonIgnore;

import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Ignore;
import com.googlecode.objectify.annotation.Index;

@Entity
public class FormulaCondition implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5716368746964998167L;

	@Id
	private Long id;

	private String columnName;

	private String operation;

	private String value1;

	private String value2;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public String getOperation() {
		return operation;
	}

	public void setOperation(String operation) {
		this.operation = operation;
	}

	public String getValue1() {
		return value1;
	}

	public void setValue1(String value1) {
		this.value1 = value1;
	}

	public String getValue2() {
		return value2;
	}

	public void setValue2(String value2) {
		this.value2 = value2;
	}

	@JsonIgnore
	@Transient
	public Key<FormulaCondition> getKey() {
		return Key.create(FormulaCondition.class, id);
	}

}
